package com.itheima.d1_char_stream;

import java.io.FileWriter;
import java.io.Writer;

public class FileWriterTest2 {
    public static void main(String[] args) {
        try (
                Writer fw = new FileWriter("C:\\Users\\dell\\IdeaProjects\\file-io-app\\io-app2\\src\\itheima02out.txt")
        ){
            fw.write("a");
            fw.write(98);

            fw.write("我爱你中国abc",0,5);

            char[] buffr={'黑','马','程','序'};

            fw.write(buffr,0,2);

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
